
SControllers.controller('index_ctrl', ['$scope', '$http', '$timeout',
  function($scope, $http, $timeout) {
     
     chrome.extension.onMessage.addListener(
         function (request, sender, sendResponse) {
             var url = "http://127.0.0.1:9798/elementPath?keys="+JSON.stringify(request.keys);
             $http.get(url).success(
                 function(data){
                     console.log(data);
                 }
             );
         }
     );
    
  }]
);


